package com.fifth.sso.feign;

import com.fifth.common.pojo.entity.UserInfo;
import com.fifth.common.pojo.entity.UserPermission;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @作者：刘壬杉
 * @创建时间 2022/8/29 20:48
 **/
@FeignClient(value = "mrcai-user")
public interface UserFeign {
    @GetMapping("/api/user/findByPhone/{telephone}")
    public UserInfo findByPhone(@PathVariable String telephone);

    @GetMapping("api/user/getPermission")
    public List<UserPermission> getPermission();
}
